added authpreferences.java for using sharedpreferences to store token
layout changes