fixed broken directives + added styles for small view