Some fixes

Created function getIdBySlug on App class