Moved expanding and contracting to own functions; title of form is now set back when contracting back to login form (re-connecting); choosing an option in the event_type and action_type boxes now fills up the textbox field right next to it with the number of the action.
Expanding and contracting now always looks good