added range checks and a few buttons