use layout fit in main view