changed buttons to actions