frontend

- moved methods to library