Implemented a popup layout