fixing some bugs related to mobile view