web application and trema controller application