removed setAction function as it is not used