Structure of frontend