added logic for resolution selection buttons