implemented powerButton actionListener