padding for mobile view and delete unused code