Fixing layout bug
Removed resizeevent stuff to fix layout issues. Now layout works well