moved model and api to separate modules + some css fixed

moved model and api to separate modules + some css fixed