M: created application and handler