Fix buttons redirect to project view problem