bug fixes, code refactoring

fixed a bug where when the user tried to delete a card, it would always
delete the top one in the list. also moved gps checking code to the main
activity rather than the query fragment.