refactored buttons etc. for responsiveness