refactored and created frontend interactions for app