fix views reference and initialize logger before booting app