modified the panel selector to work with mobile