add intent for all submit buttons and tried shared preferences