add buttons, more modular, and never use location and status as variables :;):