Fix responsive layout
avoid global variables