preparing app for ajax