Make layout adaptive based on screen rotation