Removed random inline javascript that did not look like it was doing anything important. Added conditional logic around showing different buttons when the conversation is archived and unarchived.