moved back button config to ready function