fixed migration problem and added question type functionality to app