resolving layout issues