added method to add application to dock