added cursor functionality on buttons