Added main functionality and administration menu