added layout elements. added authentication