updated to do
added smart layout based on window width