add layout auto switch base on request type for message_controller