changing layouts + attempting to prevent from changing tabs