Refactored code for readability in fbfanpage and mobile directory
combined them into 1 which is 'device'