change view direction by buttons