added additional functions for control
adjusted exit flow
some css and controls