Function for application control

server side implementation needed