added logout and app layout