change view focus functionality