Change layout and some functionalities