define(function (require) {

  var React = require('react/addons'),
    Backbone = require('backbone'),
    Button = require('./Button.react'),
    actions = require('actions'),
    modals = require('modals');

  return React.createClass({
    displayName: "InstanceActionButtons",

    propTypes: {
      multipleSelected: React.PropTypes.bool.isRequired,
      instance: React.PropTypes.instanceOf(Backbone.Model).isRequired,
      project: React.PropTypes.instanceOf(Backbone.Model).isRequired
    },

    onStart: function () {
      modals.InstanceModals.start(this.props.instance);
    },

    onSuspend: function () {
      modals.InstanceModals.suspend(this.props.instance);
    },

    onStop: function () {
      modals.InstanceModals.stop(this.props.instance);
    },

    onReboot: function(){
      modals.InstanceModals.reboot(this.props.instance);
    },

    onResume: function () {
      modals.InstanceModals.resume(this.props.instance);
    },

    onDelete: function () {
      this.props.onUnselect(this.props.instance);
      modals.InstanceModals.destroy({
        instance: this.props.instance,
        project: this.props.project
      });
    },

    render: function () {
      var instance = this.props.instance,
        status = instance.get('state').get('raw_status'),
        linksArray = [];

      if (!this.props.multipleSelected && instance.get('state').isInFinalState()) {
        if (status === "active") {
          linksArray.push(
            <Button
              key="Suspend"
              icon="pause"
              tooltip="Suspend"
              onClick={this.onSuspend}
              isVisible={true}
              />
          );
          linksArray.push(
            <Button
              key="Stop"
              icon="stop"
              tooltip="Stop"
              onClick={this.onStop}
              isVisible={true}
              />
          );
          linksArray.push(
            <Button
              key="Reboot"
              icon="repeat"
              tooltip="Reboot the selected instance"
              onClick={this.onReboot}
              isVisible={true}
              />
          );
        } else if (status === "suspended") {
          linksArray.push(
            <Button
              key="Resume"
              icon="play"
              tooltip="Resume"
              onClick={this.onResume}
              isVisible={true}
              />
          );
        } else if (status === "shutoff") {
          linksArray.push(
            <Button
              key="Start"
              icon="play"
              tooltip="Start"
              onClick={this.onStart}
              isVisible={true}
              />
          );
        }
      }

      linksArray.push(
        <Button
          key="Delete"
          icon="remove"
          tooltip="Delete"
          onClick={this.onDelete}
          isVisible={true}
          />
      );

      return (
        <div style={{borderLeft: "1px solid #ddd", display: "inline-block", paddingLeft: "10px", float: "right"}}>
          {linksArray}
        </div>
      );
    }

  });

});

@@ -1282,18 +1282,18 @@
 et('
-raw_
 status
+_raw
 '),%0A
@@ -1317,17 +1317,16 @@
 y = %5B%5D;%0A
-%0A
       if

fix typo