onRelease not working properly