added modules fb and model
added ajax support