fixed errors with layout