added transitions to modal