1st working implementation of frontend