further implementation of frontend