First shot at migrating old frontend code (WIP)